<h1>Task Manager</h1>
<#if tasks?has_content>

<table>
	<thead>
		<tr>
			<th>Id</th>
			<th>Name</th>
			<th>Description</th>
			<th>Edit</th>
			<th>Delete</th>
		</tr>
	</thead>
	<tbody>
		<#list tasks as task>
			<tr>
				<td>${task.id}</td>
				<td>${task.name}</td>
				<td>${task.description}</td>
				<td><a href="${rootPath}/tasks/edit/${task.id}">Edit</a></td>
				<td><a href="${rootPath}/tasks/delete/${task.id}">Delete</a></td>
			</tr>
		</#list>
	</tbody>
</table>
<#else>
<h2>There is no task for you.</h2>
</#if>

<p>
<a href="${rootPath}/tasks/add">Add new Task</a>
</p>
